package com.b2bpsssm.simulate;/**
 * @author JunYu
 * @create 2022-08-14--17:12
 */

import com.b2bpsssm.pojo.PrintTemplate;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: B2BPSSMSystem
 *
 * @description: 生成打印模板
 *
 * @author: JunYu
 *
 * @create: 2022-08-14 17:12
 **/

public class GeneratePrintTemplate {
    public static List<PrintTemplate> generatePrintTemplateList(int pageSize){
        List<PrintTemplate> list = new ArrayList<>();
        PrintTemplate printTemplate = new PrintTemplate();
        printTemplate.setId(1);
        printTemplate.setTitle("测试标题");
        printTemplate.setName("测试数据");
        printTemplate.setFooter("这是页脚");
        printTemplate.setStatus(1);
        for (int i = 0 ; i < pageSize ; i ++)
        {
            list.add(printTemplate);
        }
        return list;
    }
    public static PrintTemplate generatePrintTemplate(){
        PrintTemplate printTemplate = new PrintTemplate();
        printTemplate.setId(1);
        printTemplate.setTitle("测试标题");
        printTemplate.setName("测试数据");
        printTemplate.setFooter("这是页脚");
        printTemplate.setStatus(1);
        return printTemplate;
    }
}
